#ifndef LIBAACENCODERINTERFACE_H
#define LIBAACENCODERINTERFACE_H
/*




*/


typedef struct sAACEncInitData
{

	int Channel;			// Channel number.
	int SampleRate;			//sample rate such as 8000 16000
	int CodeRate;			// code rate such as 16000
	int InputSamplesSize;	//input pcm data size, usually 1024
	int OutputBufferSize;   //maxium output buffer size;

}AACEncInitData;

/*****************************************************************************



*******************************************************************************/

typedef struct sAACEncInitData * pAACEncInitData;


/*****************************************************************************



*******************************************************************************/

void * LibaacEncOpen(pAACEncInitData pInitData);

/*****************************************************************************



*******************************************************************************/

void LibaacEncClose(void * pLibAACEncHandle);

/*****************************************************************************



*******************************************************************************/
int LibaacEncEncode(void * pLibAACEncHandle, unsigned char * inputBuffer, unsigned int samplesInput,unsigned char *outputBuffer,unsigned int bufferSize);


#endif